﻿using Admin.Core.Model.Admin;
using Admin.Core.Service.Admin.Department.Input;
using AutoMapper;

namespace Admin.Core.Service.Admin.Department
{
    /// <summary>
    /// 映射配置
    /// </summary>
    public class MapConfig : Profile
    {
        public MapConfig()
        {
            //新增
            CreateMap<DepartmentAddInput, DepartmentEntity>();
            //修改
            CreateMap<DepartmentUpdateInput, DepartmentEntity>();
        }
    }
}